package cn.edu.swpu.cins.u_chain.frontend.service.user;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.*;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.BasicInfo;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.UserPublic;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService {
    UserSignResult loginByPwd(UserLogin userLogin,String VCode);

    UserSignResult loginByPhone(UserLogin userLogin);

    int register(UserPublic userPublic);

    int updatePwd(UpdatePwd updatePwd);

    int findPwd(ForgetPwd forgetPwd);

    int addContactInfo(ContactInfoView contactInfoView,int userId);

    int addBasicInfo(BasicInfo basicInfo, int userId);

    BasicInfo getBasicInfo(int userId);

    ContactInfoDetail getContactInfo(int userId);

    void checkMail(UpdateBindMail updateBindMail);

    int updateBindMail(UpdateBindMail updateBindMail);

    int uploadImage(int userId, MultipartFile image) throws IOException;

    int updateBasicInfo(BasicInfo basicInfo);

    int updateContact(ContactInfoView contactInfoView);

    LocationView getLocation();


}
